/*
 * @Author: tuyongtao1
 * @Date: 2023-10-13 14:59:43
 * @LastEditors: tuyongtao1
 * @LastEditTime: 2024-03-01 14:33:29
 * @Description: ``
 */
const { defineConfig } = require("@vue/cli-service");
// const noCatchLoader = require('no-catch-loader')
module.exports = defineConfig({
  transpileDependencies: true,
  configureWebpack: {
    module: {
      rules: [
        {
          test: /\.js$/,
          use: {
            loader: 'no-catch-loader',
            options: {
              isChangeLine: true,
              style: 'color: red;background: pink;'
            },
          },
        },
        {
          test: /\.js$/,
          use: {
            loader: 'prefix-log-loader',
          },
        },
      ],
    },
    // devtool: 'cheap-module-source-map'
  },
});
